package com.itheima.controller;

import com.itheima.service.StudentService;
import com.ken.commons.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/stu")
public class StudentController {

    @Autowired
    private StudentService studentService;

    @Autowired
    private DateUtils dateUtils;

    public String text(){
        System.out.println("测试第三方工具"
        + dateUtils.formatDate(new Date(),"yyyy/MM/dd"));
        return "success";
    }
}
